package org.bleep.input;

import java.util.ArrayList;

public class InputSystem
{
	private static ArrayList keyBindings;
	
	public static void init()
	{
		keyBindings = new ArrayList();
	}
	
	public static void bind(Button b, ButtonEventListener l)
	{
		b.registerButtonEventListener(l);
		keyBindings.add(b);
	}
	
	public static void update()
	{
		for (int i = 0; i < keyBindings.size(); i++)
		{
			((Button)keyBindings.get(i)).update();
		}
	}
}